/*
 * Copyright (c) 2013 WDCY Information Technology Co. Ltd
 * www.wdcy.cc
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * WDCY Information Technology Co. Ltd ("Confidential Information").
 * You shall not disclose such Confidential Information and shall use
 * it only in accordance with the terms of the license agreement you
 * entered into with WDCY Information Technology Co. Ltd.
 */
package com.monkey.web.dto.request.permission;

import javax.validation.constraints.NotNull;
import java.util.Map;

/**
 * @author Wu Tianqiang
 */
public class GrantPermissionRequestDto {

    @NotNull(message = "user.id.not.null")
    private Long userId;

    @NotNull(message = "grant.authorizations.not.null")
    private Map<Long, String> authorizations;

    public GrantPermissionRequestDto() {
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Map<Long, String> getAuthorizations() {
        return authorizations;
    }

    public void setAuthorizations(Map<Long, String> authorizations) {
        this.authorizations = authorizations;
    }
}